import Layout from "@/views/layout/Layout";
import iconHome from "@/assets/images/home-dark.png";

export default {
  path: "/home",
  name: "home",
  component: Layout,
  meta: {
    title: "家",
    icon: iconHome,
  },
  children: [
    {
      path: "/home/index",
      name: "homeIndex",
      component: () => import(/* webpackChunkName: "homeIndex" */ "./Home.vue"),
      meta: {
        title: "家",
        levelUp: true, // 将该菜单提到一级菜单，即不显示层级
      },
    },
    {
      path: "/home/add",
      name: "homeAdd",
      component: () => import(/* webpackChunkName: "homeIndex" */ "./Add.vue"),
      meta: {
        title: "新建",
        notOnMenu: true, // 不展示在菜单上（比如一些新建/编辑页）
      },
    },
    {
      path: "/home/edit",
      name: "homeAdd",
      component: () => import(/* webpackChunkName: "homeIndex" */ "./Add.vue"),
      meta: {
        title: "编辑",
        notOnMenu: true, // 不展示在菜单上（比如一些新建/编辑页）
      },
    },
  ],
};
